<pw:html>

	<pw:head>
        <title>SISCO - Listado de grupos</title>
        <pw:component name="pw_include_view" data-src="head_scripts.html"></pw:component>

    </pw:head>

    <pw:body>

        <pw:component name="pw_include_view" data-src="header.html"></pw:component>


        <div class="container">

			<pw:component name="pw_include_view" data-src="messages.html"></pw:component>

                
                <pw:component name="pw_div" data-class="row" data-id="" data-show="true">
                    
                    <pw:container>

                        <pw:component name="pw_div" data-class="span3" data-id="" data-show="true">
                            <pw:container>
                                <pw:component name="pw_include_view" data-src="usuario_sidebar.html"></pw:component>
                        	</pw:container>
                        </pw:component> <!-- span3 -->


                        <pw:component name="pw_div" data-class="span9" data-id="" data-show="true">
                            <pw:container>
                            	<pw:component name="pw_text" data-content="Listado de grupos" data-tag="legend" data-free=""></pw:component>
								<pw:component name="pw_link" data-caption="Agregar" data-id="" data-name="" data-url="usuarios/create/" data-free="class='btn'"></pw:component>

                                <table class="table table-bordered table-striped table-hover">
                                    <thead>
                                        <tr>
                                            <th>Grupo</th>
                                            <th>Acciones</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    {foreach from=$grupos item="grupo"}
                                        <tr>
                                            <td>{$grupo->nombre}</td>
                                            <td class="span2">
                                                <pw:component name="pw_link" data-caption="Editar" data-id="" data-name="" data-url="grupos/update/{$grupo->id}/" data-free=""></pw:component>
    
    
                                                <pw:component name="pw_link" data-caption="Eliminar" data-id="" data-name="" data-url="grupos/delete/{$grupo->id}/" data-free="class='delete-confirm' data-delete_msg='¿Estás seguro que querés borrar este usuario?'"></pw:component>
                                            </td>
                                        </tr>
                                    {/foreach}
                                    </tbody>
                                </table>
                        	</pw:container>
                        </pw:component> <!-- .span9 -->
                        
                    </pw:container>
                    
            </pw:component> <!-- .row -->

			
            <pw:component name="pw_include_view" data-src="footer.html"></pw:component>

        </div><!-- .container -->

        <pw:component name="pw_include_view" data-src="footer_scripts.html"></pw:component></pw:body>
</pw:html>